auto merge of #1074 : alexcrichton/cargo/issue-1069, r=brson
authorbors <bors@rust-lang.org>
Tue, 30 Dec 2014 01:58:39 +0000 (01:58 +0000)
committerbors <bors@rust-lang.org>
Tue, 30 Dec 2014 01:58:39 +0000 (01:58 +0000)
commit4c962c16f2bf86eb878d6affe9bf2cd5ee57084c
tree00a19c21de63f474da64f050446f746d3e05acd2
parent26ac28238aabd8506e64ced1c52abae76d017709
parentaa256ffddc8c777d26fbdf51573a7d343a1783ac
auto merge of #1074 : alexcrichton/cargo/issue-1069, r=brson

This commit unifies the notion of a "git revision" between a SourceId and the
GitSource. This pushes the request of a branch, tag, or revision all the way
down into a GitSource so special care can be taken for each case.

This primarily was discovered by #1069 where a git tag's id is different from
the commit that it points at, and we need to push the knowledge of whether it's
a tag or not all the way down to the point where we resolve what revision we
want (and perform appropriate operations to find the commit we want).

Closes #1069